module Base
{
	model fhq93RangerSCab
	{
		mesh = vehicles/vehicle_fhq93rangerSCab|fhqRanger2g_SupCab,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhq93RangerSCab_Exh
	{
		mesh = vehicles/vehicle_fhq93rangerSCab|fhqRanger2g_Exh_SupCab,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	vehicle fhq93RangerSCab
    {
        template! = fhq93Ranger,

        model
        {
            file = fhq93RangerSCab,
            scale = 1.8200,
            offset = 0.0000 0.0659 0.0330,
        }

        skin
        {
            texture = Vehicles/vehicle_fhq93RangerSCab_shell,
        }

        skin
        {
            texture = Vehicles/vehicle_fhq93RangerSCab_2_shell,
        }

        textureMask = Vehicles/vehicle_fhq93RangerSCab_mask,
        textureLights = Vehicles/vehicle_fhq93RangerSCab_lights,
        extents = 0.8132 0.6154 2.3956,
        mass = 1005,
        physicsChassisShape = 0.8132 0.6154 2.3956,
        centerOfMassOffset = 0.0000 0.3077 -0.0165,
        shadowExtents = 0.8491 2.4580,
        shadowOffset = 0.0000 0.0000,
        seats = 4,

        wheel FrontLeft
        {
            front = true,
            offset = 0.3297 -0.1044 0.7418,
            radius = 0.17f,
            width = 0.29f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -0.3297 -0.1044 0.7418,
            radius = 0.17f,
            width = 0.29f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 0.3297 -0.1044 -0.7527,
            radius = 0.17f,
            width = 0.29f,
        }

        wheel RearRight
        {
            front = false,
            offset = -0.3297 -0.1044 -0.7527,
            radius = 0.17f,
            width = 0.29f,
        }

        template = PassengerSeat4,

        passenger FrontLeft
        {
            position inside
            {
                offset = 0.1593 0.1484 0.1264,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 0.5440 -0.1868 0.1044,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }

        passenger FrontRight
        {
            position inside
            {
                offset = -0.1593 0.1484 0.1264,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -0.5440 -0.1868 0.1044,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }

        passenger RearLeft
        {
            position inside
            {
                offset = 0.1813 0.1264 -0.1703,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
            }
        }

        passenger RearRight
        {
            position inside
            {
                offset = -0.1813 0.1264 -0.1703,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
            }
        }

        area Engine
        {
            xywh = 0.0000 1.3846 0.8132 0.4066,
        }

        area TruckBed
        {
            xywh = 0.0000 -0.9804 1.6923 1.4176,
        }

        area SeatFrontLeft
        {
            xywh = 0.6429 0.2033 0.4725 0.4725,
        }

        area SeatFrontRight
        {
            xywh = -0.6429 0.2033 0.4725 0.4725,
        }

        area SeatRearRight
        {
            xywh = -0.6429 -0.1374 0.4725 0.4725,
        }

        area SeatRearLeft
        {
            xywh = 0.6429 -0.1374 0.4725 0.4725,
        }

        area GasTank
        {
            xywh = 0.6319 -0.3297 0.4505 0.4505,
        }

        area TireFrontLeft
        {
            xywh = 0.6429 0.7692 0.4725 0.4725,
        }

        area TireFrontRight
        {
            xywh = -0.6429 0.7692 0.4725 0.4725,
        }

        area TireRearLeft
        {
            xywh = 0.6429 -0.7143 0.4725 0.4725,
        }

        area TireRearRight
        {
            xywh = -0.6429 -0.7143 0.4725 0.4725,
        }

        template = Trunk/part/TruckBedOpen,

        part TruckBedOpen
        {
            container
            {
                capacity = 105,
            }
        }

        part GloveBox
        {
            model Default
            {
                file = fhq93Ranger_BumperR,
                offset = 0.0000 0.0000 -0.2143,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        part Muffler
        {
            model Default
            {
                file = fhq93RangerSCab_Exh,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        template = Window/part/WindowRearLeft,
        template = Window/part/WindowRearRight,

        part WindowRearLeft
        {
            area = TireRearLeft,
            parent =,

            table install
            {
                requireInstalled =,
            }
        }

        part WindowRearRight
        {
            area = TireRearRight,
            parent =,

            table install
            {
                requireInstalled =,
            }
        }

        useChassisPhysicsCollision = false,

        physics box
        {
            offset = 0.0000 0.1868 -0.2039,
            extents = 0.8022 0.3736 1.9341,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.3132 0.0531,
            extents = 0.8022 0.6154 0.5714,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.2148 0.8087,
            extents = 0.8022 0.2967 0.6044,
            rotate = 10.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.3077 0.2693,
            extents = 0.8022 0.3407 0.5385,
            rotate = -45.0000 0.0000 0.0000,
        }

        attachment trailer
        {
            offset = 0.0000 0.0140 -1.2610,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = -1.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 0.0469 1.1418,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }
    }
}
